package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.DisRequirements;
import com.woniuxy.entity.Procurement;
import com.woniuxy.mapper.DisRequirementsMapper;
import com.woniuxy.service.DisRequirementsService;

@Service
public class DisRequirementsImpl implements DisRequirementsService {
	@Autowired
	private DisRequirementsMapper disRequirementsMapper;
	
	@Override
	public List<DisRequirements> findRequirements() {
		
		return disRequirementsMapper.findRequirements();
	}

	@Override
	public DisRequirements finddisRequirementByOrderno(String orderno) {
		
		return disRequirementsMapper.finddisRequirementByOrderno(orderno);
	}

	@Override
	public int insertDisprocurement(DisRequirements dis) {
		int i=disRequirementsMapper.insertDisprocurement(dis);
		return i;
	}

	@Override
	public int updatedistributionByOrderno(DisRequirements dis) {
		int i=disRequirementsMapper.updatedistributionByOrderno(dis);
		return i;
	}

	@Override
	public int delDisByOrderno(String orderno) {
		int i=disRequirementsMapper.delDisByOrderno(orderno);
		return i;
	}

	@Override
	public int insertToProcurement(Procurement procurement) {
		int i=disRequirementsMapper.insertToProcurement(procurement);
		return i;
	}

	@Override
	public int changeStatus(DisRequirements disRequirements) {
		int i=disRequirementsMapper.changeStatus(disRequirements);
		return i;
	}

}
